package com.chinasofti.singleton;

public class FirstSingleton {
    private static  FirstSingleton instance = new FirstSingleton();

    //构造方法私有
    private FirstSingleton(){

    }
    //提供静态公共方法，返回自己创建的唯一实例
    public static FirstSingleton getInstance(){
        return instance;
    }
}
